<?php 
include TEMPLATEPATH.'/controllers/pro-contact-us.php';
$args = array(
	'post_type'	=> 'post',
	'include'   => array($post_id),
	'posts_per_page' =>1
);
query_posts($args);

if(have_posts())
{
	the_post();
}
$thumbnail = db_get_post_meta($post_id, $wpdb->prefix.'thumbnail');
$title = get_the_title($post_id);
$excerpt = db_shortDesc(get_the_content(), 250);
?>
<?php 
$html = '';
$html .= '

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Email template</title>
<link rel="stylesheet" type="text/css" href="'.WP_MYSITE_TEMPLATE_URL.'/css/mail_css.css"/>
</head>
<body>
<div class="mymain">
	<div id="header" class="fix-width">
		<div class="logo">
			<a href="'.WP_MYSITE_URL.'"><img alt="" src="'.WP_MYSITE_TEMPLATE_URL.'/images/logo.png"></a>
		</div>
		<div class="company-text">
			<a href="'.WP_MYSITE_URL.'"><img alt="" src="'.WP_MYSITE_TEMPLATE_URL.'/images/company_text.png"></a>
		</div>
		
		
	</div>
	
	<div id="main-content">
		<a href="'.WP_MYSITE_URL.'"><img alt="" src="'.$thumbnail.'"></a>
		<h1><a href="'.WP_MYSITE_URL.'">'.$title.'</a></h1>
		<p>
			'.$excerpt.'
		</p>	
	</div>
	<div class="main-footer">
		<div class="footer_box1">
					'.$companyName.'<br />
					Địa chỉ : '.$companyAddress.'<br />
					Điện thoại : '.$companyPhone.' | MST : '. $companyMST.' <br />
					Email : '.$companyContact.'<br />
					Web: '.$companySite.'
		</div>
	</div>
</div>
</body>
</html>


';

echo $html;
?>
